ActionController::Routing::Routes.draw do |map|
  
  map.root :controller => "welcome"
  map.resources :reservations

  map.resources :chambres, :has_many => :reservations
  map.resources :chambres, :has_many => :clients

  map.resources :clients, :has_many => :reservations
  map.resources :clients, :has_many => :chambres
  
  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'
end
